package com.pig.graduate.controller.event;


import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig.graduate.domain.event.EventEntry;
import com.pig.graduate.domain.produce.ProduceBoar;
import com.pig.graduate.domain.sys.SysRole;
import com.pig.graduate.result.MyResult;
import com.pig.graduate.service.event.EventEntryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = {"进场记录"}, description = "进场记录")
@RestController
@RequestMapping("/event/entry")
public class EventEntryController {

    @Autowired
    private EventEntryService eventEntryService;

    /**
     * 进场记录
     * @param eventEntry
     * @return
     */
    @ApiOperation(value = "进场记录",notes = "进场记录")
    @PostMapping("/list")
    public MyResult entryList(@RequestBody EventEntry eventEntry){
        return eventEntryService.entryList(eventEntry);
    }
}
